﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Areas/Admin/Admin.Master" Inherits="System.Web.Mvc.ViewPage<agent02.Areas.Admin.ViewModels.WebServiceCreateViewModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Create
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Create</h2>

    <% using (Html.BeginForm()) {%>
        <%: Html.ValidationSummary(true) %>

        <fieldset>
            <legend>Fields</legend>
            
            <div>
                Username<br />
                <%: Html.TextBoxFor(model => model.ws.Username) %>
                <%: Html.ValidationMessageFor(model => model.ws.Username) %>
                <br /><br />
            </div>

            <div>
                Password<br />
                <%: Html.TextBoxFor(model => model.ws.Password) %>
                <%: Html.ValidationMessageFor(model => model.ws.Password) %>
                <br /><br />
            </div>

            <div>
                Địa Chỉ WS<br />
                <%: Html.TextBoxFor(model => model.ws.DiaChiWS) %>
                <%: Html.ValidationMessageFor(model => model.ws.DiaChiWS) %>
                <br /><br />
            </div>

            <div>
                Trạng Thái<br />
                <%= Html.DropDownListFor(model => model.ws.TrangThai, Model.tt) %>
                <br /><br />
            </div>

            <div>
                Tên Nhà Cung Cấp<br />
                <%= Html.DropDownListFor(model => model.ws.MaNCC, Model.tenNCC) %>
                <br /><br />
            </div>

            <p>
                <input type="submit" value="Create" />
            </p>
        </fieldset>

    <% } %>

    <div>
        <%: Html.ActionLink("Back to List", "Index") %>
    </div>

</asp:Content>

